package cn.ll.po;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * Task entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "task", catalog = "lldb")
public class Task implements java.io.Serializable {

	// Fields

	private String id;
	private String contractid;
	private String createuser;
	private Date createtime;
	private String verifyuser;
	private Date verifytime;
	private Integer type;
	private Integer status;
	private String pmgrid;
	private String pmgrname;
	private String pastid;
	private String pastname;
	private Integer departmentid;
	private String rootid;
	private String taskdetail;
	private String verifyuserid;
	private Date workstarttime;
	private Date workfinishtime;
	private Date pasttime;
	private String depname;
	private String createusername;

	// Constructors

	/** default constructor */
	public Task() {
	}

	/** minimal constructor */
	public Task(String id, Date createtime) {
		this.id = id;
		this.createtime = createtime;
	}

	/** full constructor */
	public Task(String id, String contractid, String createuser, Date createtime, String verifyuser,
			Date verifytime, Integer type, Integer status, String pmgrid, String pmgrname, String pastid,
			String pastname, Integer departmentid, String rootid, String taskdetail, String verifyuserid,
			Date workstarttime, Date workfinishtime, Date pasttime, String depname, String createusername) {
		this.id = id;
		this.contractid = contractid;
		this.createuser = createuser;
		this.createtime = createtime;
		this.verifyuser = verifyuser;
		this.verifytime = verifytime;
		this.type = type;
		this.status = status;
		this.pmgrid = pmgrid;
		this.pmgrname = pmgrname;
		this.pastid = pastid;
		this.pastname = pastname;
		this.departmentid = departmentid;
		this.rootid = rootid;
		this.taskdetail = taskdetail;
		this.verifyuserid = verifyuserid;
		this.workstarttime = workstarttime;
		this.workfinishtime = workfinishtime;
		this.pasttime = pasttime;
		this.depname = depname;
		this.createusername = createusername;
	}

	// Property accessors
	@Id
	@Column(name = "id", unique = true, nullable = false, length = 36)
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "contractid", length = 36)
	public String getContractid() {
		return this.contractid;
	}

	public void setContractid(String contractid) {
		this.contractid = contractid;
	}

	@Column(name = "createuser", length = 36)
	public String getCreateuser() {
		return this.createuser;
	}

	public void setCreateuser(String createuser) {
		this.createuser = createuser;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "createtime", nullable = false, length = 0)
	public Date getCreatetime() {
		return this.createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	@Column(name = "verifyuser", length = 36)
	public String getVerifyuser() {
		return this.verifyuser;
	}

	public void setVerifyuser(String verifyuser) {
		this.verifyuser = verifyuser;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "verifytime", length = 0)
	public Date getVerifytime() {
		return this.verifytime;
	}

	public void setVerifytime(Date verifytime) {
		this.verifytime = verifytime;
	}

	@Column(name = "type")
	public Integer getType() {
		return this.type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	@Column(name = "status")
	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Column(name = "pmgrid", length = 36)
	public String getPmgrid() {
		return this.pmgrid;
	}

	public void setPmgrid(String pmgrid) {
		this.pmgrid = pmgrid;
	}

	@Column(name = "pmgrname", length = 100)
	public String getPmgrname() {
		return this.pmgrname;
	}

	public void setPmgrname(String pmgrname) {
		this.pmgrname = pmgrname;
	}

	@Column(name = "pastid", length = 36)
	public String getPastid() {
		return this.pastid;
	}

	public void setPastid(String pastid) {
		this.pastid = pastid;
	}

	@Column(name = "pastname", length = 100)
	public String getPastname() {
		return this.pastname;
	}

	public void setPastname(String pastname) {
		this.pastname = pastname;
	}

	@Column(name = "departmentid")
	public Integer getDepartmentid() {
		return this.departmentid;
	}

	public void setDepartmentid(Integer departmentid) {
		this.departmentid = departmentid;
	}

	@Column(name = "rootid", length = 36)
	public String getRootid() {
		return this.rootid;
	}

	public void setRootid(String rootid) {
		this.rootid = rootid;
	}

	@Column(name = "taskdetail", length = 500)
	public String getTaskdetail() {
		return this.taskdetail;
	}

	public void setTaskdetail(String taskdetail) {
		this.taskdetail = taskdetail;
	}

	@Column(name = "verifyuserid", length = 45)
	public String getVerifyuserid() {
		return this.verifyuserid;
	}

	public void setVerifyuserid(String verifyuserid) {
		this.verifyuserid = verifyuserid;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "workstarttime", length = 0)
	public Date getWorkstarttime() {
		return this.workstarttime;
	}

	public void setWorkstarttime(Date workstarttime) {
		this.workstarttime = workstarttime;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "workfinishtime", length = 0)
	public Date getWorkfinishtime() {
		return this.workfinishtime;
	}

	public void setWorkfinishtime(Date workfinishtime) {
		this.workfinishtime = workfinishtime;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "pasttime", length = 0)
	public Date getPasttime() {
		return this.pasttime;
	}

	public void setPasttime(Date pasttime) {
		this.pasttime = pasttime;
	}

	@Column(name = "depname", length = 45)
	public String getDepname() {
		return this.depname;
	}

	public void setDepname(String depname) {
		this.depname = depname;
	}

	@Column(name = "createusername", length = 45)
	public String getCreateusername() {
		return this.createusername;
	}

	public void setCreateusername(String createusername) {
		this.createusername = createusername;
	}

}